import numpy as np

def verify_result():
    # 加载预期结果和实际结果
    try:
        expected_result = np.load('expected_result.npy')
        actual_result = np.load('output_result.npy')

        # 比较结果
        if np.allclose(expected_result, actual_result, atol=1e-5):
            print("Results match!")
        else:
            print("Results do not match!")
    except Exception as e:
        print(f"Error while verifying results: {e}")

if __name__ == "__main__":
    verify_result()
